const getters = {
  token: state => state.user.token,
	name: state => state.user.name,
	
	// 头像
  avatar: state => state.user.avatar,
	// 昵称（姓名）
	nickname: state => state.user.nickname,
	// // 警号
	// number: state => state.user.number,
	// // 电话
	// phone: state => state.user.phone,
	// // 派出所
	affiliation: state => state.user.affiliation,
	
  roles: state => state.user.roles,
  permissions: state => state.user.permissions
}
export default getters
